POV-Ray : Newsgroups : povray.binaries.images : Block coded in PovRay : Re: Block coded in PovRay Server Time
2 Aug 2024 06:19:25 EDT (-0400)
  Re: Block coded in PovRay  
From: Thomas de Groot
Date: 7 Feb 2008 06:10:27
Message: <47aae723@news.povray.org>
I made some little adjustments to Trevor's, switching in particular the z- 
and y-axes to standard POV-Ray orientation.

Added the randomization, which - by the way - takes extra parsing time of 
course.

#declare f_hf=
function{
  pattern {
    agate
    warp {turbulence chaos}
    scale resolution
  }
}

#declare bloks=
union{
  #declare Z=1;#while (Z<=resolution*10)
    #declare X=1;#while (X<=resolution*0.5)
      #declare Y=1;#while (Y<=resolution*2)
        #if (f_hf(X,Y,Z)>(1-densiti))
          box {<-RRand(0.4,2,R),-RRand(0.4,0.5,R),-RRand(0.4,1,R)>, 
<RRand(0.4,2,R),RRand(0.4,0.5,R),RRand(0.4,1,R)>
            translate<X,Y,Z>
            //pigment {rgb <RRand(0.9,1,R),RRand(0.9,1,R),RRand(0.9,1,R)>}
          }
        #end
      #declare Y=Y+1;#end
    #declare X=X+1;#end
  #declare Z=Z+1;#end
}

Image rendered in about 10 minutes by Megapov, with default radiosity 
(gray_threshold 0.5), resolution of 30, and chaos 2.

Thomas


Post a reply to this message


Attachments:
Download 'HKarsten_GreebleBlock.jpg' (170 KB)

Preview of image 'HKarsten_GreebleBlock.jpg'
HKarsten_GreebleBlock.jpg


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.